package sfmc.biz.daoImpl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import sfmc.biz.dao.SfmcEmpDao;
import sfmc.biz.vo.Sfmc_TB_EMPLOYEE;

@Repository("SfmcEmpDao")
public class SfmcEmpDaoImpl implements SfmcEmpDao{
	protected Log log = LogFactory.getLog(this.getClass());
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	   
	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}
	
	public List<Sfmc_TB_EMPLOYEE> getEmpList(Sfmc_TB_EMPLOYEE dto) {
		return sqlMapClientTemplate.queryForList("getEmpList",dto);
	}

	public int insertEmp(Sfmc_TB_EMPLOYEE dto) {
		Object temp = sqlMapClientTemplate.insert("insertEmp", dto);
		return 0;
	}

	public int updateEmp(Sfmc_TB_EMPLOYEE dto) {
		return sqlMapClientTemplate.update("updateEmp", dto);
	}

	public int deleteEmp(Sfmc_TB_EMPLOYEE dto) {
		return sqlMapClientTemplate.delete("deleteEmp", dto);
	}
	
	/*public List<Sfmc_TB_EMPLOYEE> getEmpExcelList(Sfmc_TB_EMPLOYEE dto) {
		return sqlMapClientTemplate.queryForList("getEmpList",dto);
	}*/
	

	
}
